﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        //1、猫、狗、鸭、猴，（吃、游泳、爬树）
        //父类动物 name 都会吃 
        static void Main(string[] args)
        {
            Animals a = new Animals("鸭子", "吃");
            a.Info();
            Duck duck = new Duck();
            duck.swim();
            Console.WriteLine("\t");
            Animals b = new Animals("狗", "吃");
            b.Info();
            Dog dog = new Dog();
            dog.swim();
            Console.WriteLine("\t");
            Animals c = new Animals("猴子", "吃");
            c.Info();
            Monkey monkey = new Monkey();
            monkey.climb();
            Console.WriteLine("\t");
            Animals d = new Animals("猫", "吃");
            d.Info();
            Cat cat = new Cat();
            cat.climb();
        }
    }
}
